<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie ie6 oldie" lang="pt"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie ie7 oldie" lang="pt"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie ie8 oldie" lang="pt"> <![endif]-->
<!--[if IE 9]>    <html class="no-js ie ie9 oldie" lang="pt"> <![endif]-->
<!--[if gt IE 9]><!-->
<html lang="pt-br" class="no-js"> 
<!--<![endif]-->

 <head>  
                <meta charset="utf-8">
                <meta name="viewport" content="width=device-width, initial-scale=1.0">

                <?php echo $this->headTitle("SGPIB");?>
                <!--[if lt IE 9]>
                    <?php $this->headScript()->appendFile($this->baseUrl().'/js/html5.js') ?> 
                    <?php $this->headScript()->appendFile($this->baseUrl().'/js/respond.min.js') ?> 
                    <?php echo $this->headScript(); ?>
                <![endif]-->
                <!-- Core CSS - Include with every page -->
                <?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/bootstrap.min.css'); ?>
                <?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/font-awesome/css/font-awesome.css'); ?>
                <?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/plugins/dataTables/dataTables.bootstrap.css'); ?>

                <!-- SB Admin CSS - Include with every page -->
                <?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/sb-admin.css'); ?>
    
</head>

<body>

    <div id="wrapper">

        <nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#"><img src= "<?php echo $this->baseUrl().'/images/logo_pib2.jpg' ?>" style="margin-top: -10px;" />
                    &nbsp; SGPIB - Sistema de Gest&atilde;o de Membros</a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">
             
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>
                        <?php echo $_SESSION['user']->getFullName();?>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
                        </li>
                        <li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href= <?php echo $this->baseUrl()."/auth/logout" ?> ><i class="fa fa-sign-out fa-fw"></i> Sair</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->

            <div class="navbar-default navbar-static-side" role="navigation">
                <div class="sidebar-collapse">
                    <ul class="nav" id="side-menu">
                        <li>
                            <a href=<?php echo $this->baseUrl()."/membro" ?> ><i class="fa fa-edit fa-fw"></i> Membros</a>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-wrench fa-fw"></i> Manuten&ccedil;&atilde;o<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href= <?php echo $this->baseUrl()."/situacao" ?> >Tipos Situa&ccedil;&atilde;o</a>
                                </li>
                                <li>
                                    <a href= <?php echo $this->baseUrl()."/grupo" ?> >Grupos</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>

                        <li>
                            <a href="#"><i class="fa fa-files-o fa-fw"></i> Relat&oacute;rios <span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="blank.html">Blank Page</a>
                                </li>
                                <li>
                                    <a href="login.html">Login Page</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                    </ul>
                    <!-- /#side-menu -->
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header"><?php echo $this->title;?></h1>
                    <?php
                          echo $this->layout()->content;
                    ?>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <?php $this->headScript()->appendFile($this->baseUrl().'/js/jquery-1.10.2.js') ?> 
    
    <!-- Page-Level Plugin Scripts - Tables -->
    <?php $this->headScript()->appendFile($this->baseUrl().'/js/plugins/dataTables/jquery.dataTables.js') ?> 
    <?php $this->headScript()->appendFile($this->baseUrl().'/js/plugins/dataTables/dataTables.bootstrap.js') ?> 
    
    <!-- Core Scripts - Include with every page -->
    <?php $this->headScript()->appendFile($this->baseUrl().'/js/bootstrap.min.js') ?> 
    <?php $this->headScript()->appendFile($this->baseUrl().'/js/plugins/metisMenu/jquery.metisMenu.js') ?> 
    
    <!-- SB Admin Scripts - Include with every page -->
    <?php $this->headScript()->appendFile($this->baseUrl().'/js/sb-admin.js') ?> 
    <?php echo $this->headScript(); ?>
    
    <script>
    $(document).ready(function() {
                
        $("#table-data").dataTable({ 
            "bJQueryUI": true, 
            "oLanguage": { 
            "sProcessing": "Processando...", 
            "sLengthMenu": "Mostrar _MENU_ registros", 
            "sZeroRecords": "Nao foram encontrados resultados", 
            "sInfo": "Mostrando de _START_ ate _END_ de _TOTAL_ registros", 
            "sInfoEmpty": "Mostrando de 0 ate 0 de 0 registros", 
            "sInfoFiltered": "", 
            "sInfoPostFix": "", 
            "sSearch": "Buscar:", 
            "sUrl": "", 
            "oPaginate": { 
            "sFirst": "Primeiro", 
            "sPrevious": "Anterior", 
            "sNext": "Seguinte", 
            "sLast": "Ultimo" 
            } 
            } 
          }); 
        
    });
    
    
    </script>
</body>

</html>
